<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>	
<c:set var="ctx" value="<%=request.getContextPath()%>"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>简易留言本</title>
<style type="text/css">
body {
	background-image: url("imag/beijin.jpg");
}

.top {
	margin-top: 10px;
}

.bottom {
	margin-top: 50px;
}

.margin-top {
	margin-top: 250px;
}
</style>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div class="container">
		<ul class="nav nav-pills col-md-offset-3">
			<li class="nav-item"><a class="nav-link active" href="#">首页</a>
			</li>
			<li class="nav-item"><a class="nav-link" href="index.jsp">给我留言</a>
			</li>
			<li class="nav-item"><a class="nav-link" href="messagebook.jsp">留言本</a>
			</li>
			<li class="nav-item"><a class="nav-link" href="login.jsp">管理</a>
			</li>
			<li class="nav-item"><a class="nav-link disabled" href="#">关于我们</a>
			</li>
		</ul>
	</div>
	<div class="container margin-top">
		<form action="addMessage" method="post">
			<div class="row">
				<label class="col-md-1 col-md-offset-3">昵称</label> <input
					class="col-md-2" type="text" name="nickname" placeholder="请输入昵称">&nbsp;
				${requestScope.nickname}
			</div>
			<div class="row top">
				<label class="col-md-1 col-md-offset-3">标题</label> <input
					class="col-md-2" type="text" name="title" placeholder="请输入标题">&nbsp;
				${requestScope.title}
			</div>
			<div class="row top">
				<label class="col-md-1 col-md-offset-3">联系方式</label> <input
					class="col-md-2" type="text" name="phone" placeholder="请输入联系方式">&nbsp;
				${requestScope.phone}
			</div>
			<div class="row top">
				<label class="col-md-1 col-md-offset-3">留言内容</label>
				<textarea rows="5" cols="40" name="content" placeholder="请输入留言内容"></textarea>
				&nbsp; ${requestScope.content}
			</div>
			<div class="row">
				<button class="col-md-offset-4" type="submit">留言</button>
				<button type="reset">重置</button>
			</div>
		</form>
	</div>
	<div class="container bottom">
		<p class="col-md-offset-4">
			<strong>版权所有：</strong>简易留言本&nbsp;©2018
		</p>
	</div>
</body>
</html>